package com.diy.sigmund.diycommon.spring.extensionpoint;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.stereotype.Component;

/**
 * @author ylm-sigmund
 * @since 2022/9/20 17:17
 */
@Component
public class CustomBeanFactoryAware implements BeanFactoryAware {

    private static final Logger log = LoggerFactory.getLogger(CustomBeanFactoryAware.class);

    @Override
    public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
        log.info("beanFactory = " + beanFactory);
    }
}
